
import request from '@/utils/request'
import router from '@/router/routers'
import Vue from "vue"
export function add(data) {
  return request({
    url: data.uniId ? '/api/uni/edit' : '/api/uni/create',
    method: 'post',
    data
  })
}
export function other() {
  Vue.$property.$refs.schoolAddDialog.add({})
}
export function del(data) {
  return request({
    url: `/api/uni/delete`,
    method: 'post',
    data
  })
}
export function edit(data) {
  return request({
    url: '/api/uni/edit',
    method: 'post',
    data
  })
}
export function getList(data) {
  return request({
    url: '/api/uni/list',
    method: 'post',
    data
  })
}
export function getInfoById(data) {
  return request({
    url: '/api/uni/detail',
    method: 'post',
    data
  })
}
export function getTags() {
  return request({
    url: '/api/cfg/uni/tag',
    method: 'post'
    
  })
}

export default { add, edit, del, getList, getInfoById, other,getTags }
